package com.ruoyi.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 上传总信息对象 hz_upload_info
 *
 * @author ruoyi
 * @date 2021-07-18
 */
public class HzUploadInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    /**
     * 标题名称
     */
    @Excel(name = "标题名称")
    private String titleName;

    /**
     * 封面图(省略图)
     */
    @Excel(name = "封面图(省略图)")
    private String surfacePlotUrl;

    /**
     * 文件分类字典id
     */
    @Excel(name = "文件分类字典id")
    private String fileClassDictId;

    /**
     * 文件类型 1:套图   2:视频
     */
    @Excel(name = "文件类型 1:套图   2:视频")
    private Integer fileType;

    /**
     * 视频才有gif省略图
     */
    @Excel(name = "视频才有gif省略图")
    private String videoGifUrl;

    /**
     * 上传时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /**
     * 文件数量
     */
    @Excel(name = "文件数量")
    private Integer fileCount;

    /**
     * 浏览次数
     */
    @Excel(name = "浏览次数")
    private Long browseCount;

    /**
     * 最新浏览时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最新浏览时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date browseNewDate;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTitleName(String titleName) {
        this.titleName = titleName;
    }

    public String getTitleName() {
        return titleName;
    }

    public void setSurfacePlotUrl(String surfacePlotUrl) {
        this.surfacePlotUrl = surfacePlotUrl;
    }

    public String getSurfacePlotUrl() {
        return surfacePlotUrl;
    }

    public void setFileClassDictId(String fileClassDictId) {
        this.fileClassDictId = fileClassDictId;
    }

    public String getFileClassDictId() {
        return fileClassDictId;
    }

    public void setFileType(Integer fileType) {
        this.fileType = fileType;
    }

    public Integer getFileType() {
        return fileType;
    }

    public void setVideoGifUrl(String videoGifUrl) {
        this.videoGifUrl = videoGifUrl;
    }

    public String getVideoGifUrl() {
        return videoGifUrl;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setFileCount(Integer fileCount) {
        this.fileCount = fileCount;
    }

    public Integer getFileCount() {
        return fileCount;
    }

    public void setBrowseCount(Long browseCount) {
        this.browseCount = browseCount;
    }

    public Long getBrowseCount() {
        return browseCount;
    }

    public void setBrowseNewDate(Date browseNewDate) {
        this.browseNewDate = browseNewDate;
    }

    public Date getBrowseNewDate() {
        return browseNewDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("titleName", getTitleName())
                .append("surfacePlotUrl", getSurfacePlotUrl())
                .append("fileClassDictId", getFileClassDictId())
                .append("fileType", getFileType())
                .append("videoGifUrl", getVideoGifUrl())
                .append("updateDate", getUpdateDate())
                .append("fileCount", getFileCount())
                .append("browseCount", getBrowseCount())
                .append("browseNewDate", getBrowseNewDate())
                .toString();
    }
}
